from appium import webdriver
from appium.webdriver.common.mobileby import MobileBy

from APPauto.test_APPauto_practice.test_enterprise_wechat_app.po_add_del_member.package.address_book_package import \
    AddressBookPackage
from APPauto.test_APPauto_practice.test_enterprise_wechat_app.po_add_del_member.package.base import Base


class MainPackage(Base):

    def get_address_book_package(self):
        """进入通讯录页面"""
        self.driver.find_element(MobileBy.XPATH,"//*[@text='通讯录']").click()
        return AddressBookPackage(self.driver)

